package common

import (
	"crypto/sha256"
	"fmt"
	"strings"
)

func Hash(contents ...string) string {
	bytes := []byte(strings.Join(contents, "_"))
	writer := sha256.New()
	writer.Write(bytes)
	result := writer.Sum([]byte(""))
	return fmt.Sprintf("%x", result)
}
